package com.barunsw.bwf.bims.channel_history;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.barunsw.bwf.bims.vo.ChannelHistoryVo;

@Service
public class ChannelHistoryServiceImpl implements ChannelHistoryService {
	@Autowired
	ChannelHistoryDao channelHistoryDao;
	
	@Override
	public List<ChannelHistoryVo> getHistoryList(long channelId, long count, String startTime, String endTime) throws Exception {
		// TODO Auto-generated method stub
		return channelHistoryDao.selectList(channelId, count, startTime, endTime);
	}

	@Override
	public int insertHistory(ChannelHistoryVo historyVo) throws Exception {
		// TODO Auto-generated method stub
		return channelHistoryDao.insertHistory(historyVo);
	}

	@Override
	public int deleteHistory(long channelId, String startTime, String endTime) throws Exception {
		// TODO Auto-generated method stub
		return channelHistoryDao.deleteHistory(channelId, startTime, endTime);
	}

}
